package com.site.wisdom_construction.dao.personnelModule;

import com.site.wisdom_construction.entity.personnelModule.SafetyTrainingWorkers;
import com.site.wisdom_construction.responseEntity.SafetyTrainingR;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/5
 * @Description
 */
public interface SafetyTrainingWorkersDao {
    /** 增加人员培训对应信息 */
    int insertSafetyTrainingWorkers(Map map);

    /** 删除对应信息 */
    int deleteSafetyTrainingWorkers(Map map);

    /** 删除对应信息-根据培训id */
    int deleteSafetyTrainingWorkersById(Map map);

    /** 根据培训id分页查询对应信息 */
    List<SafetyTrainingWorkers> findSafetyTrainingWorkersById(Map map);

    /** 根据培训id查询对应人员id */
    List<Integer> findSafetyTrainingWorkersBySafetyTrainingId(Map map);

    /** 根据培训id分页查询对应信息 */
    List<SafetyTrainingWorkers> findSafetyTrainingWorkersByPage(Map map);

    /** 统计总数(分页) */
    long Total(Map map);

    /** 根据工人id查询对应的培训信息 */
    List<Integer> findSafetyTrainingByWorkersId(Map map);

    /** 根据工人id查询对应的详细培训信息 */
    List<SafetyTrainingR> findSafetyTrainingByWorkerId(Map map);
}
